const store = require('./store')
const { changeNameAction,addCountAction } = require('./store/actionCreators')

store.subscribe(() => {
  // 订阅数据的变化
  console.log(store.getState());
})

// 修改name
store.dispatch(changeNameAction('李四'))

// 修改count
store.dispatch(addCountAction(10))
